//
//  KABillListModel.swift
//  kano
//
//  Created by Frank on 2024/9/19.
//

import KakaJSON


struct KARecordSubLoans: Convertible {
    var entityIdentifier: Int = 0
    var uniqueIdentifier: String = ""
    var operationGuidelines: TimeInterval = 0
    var modificationTimestamp: TimeInterval = 0
    var softwareUpdateVersions: String = ""
    var voucherSequenceNumber: String = ""
    var repaymentTiming: Int = 0
    var exceedingExpiration: Int = 0
    var dueExceedingTime: Int = 0
    var discountValue: Int = 0
    var voucherTypeSub: Int = 0
    var nameInformation: Int = 0
    var advanceRemaining: Double = 0.00
    var validationCode: Int = 0
    var dueDateTime: TimeInterval = 0
    var businessProcessType: Int = 0
    var lastRepaymentTimestamp: TimeInterval = 0
    var emailProvider: Int = 0
    var settlementFeeTime: TimeInterval = 0
    var initialCreationTime: Bool = false
    var additionalNotes: String = ""
    var overdueDuration: Int = 0
}

struct KALoanListModel: Convertible {
    //loanGid 账单id
    var loanTransactionIdentifier: String = ""
    //bankShortName 银行名称
    var bankCardQuantity: String = ""
    //cardNo 卡号
    var campaignIdentifier: String = ""
    //exceedDays 逾期天数
    var overdueDuration: Int = 0
    //loanLeftAmount 小额待还金额
    var registrationConfirmation: Double = 0.00
    //dueTime 到期时间
    var dueDateTime: TimeInterval = 0
    //status 0：打款中，2：还款处理中--7/20续期中，9：审核中, 8：因网络原因借款失败 99：因没有获取到绑卡token而借款失败,   1、4 ：待还款
    var operationalStatus: Int = 0
    //productType 产品类型：1、14天小额 2、大额
    var productClassification: Int = 0
    //subLoanCount 分期数量
    var secondaryLoanTotal: Int = 0
    //贷款金额 loanAmount
    var overdueStatus: Int = 0
    //tadpoleLoanFlag 是否是蝌蚪贷订单
    var tadpoleLoanIndicator: Bool = false
    //tadpoleLoanLeftAmount 蝌蚪贷 待还金额
    var remainingLoanBalance: Double = 0.00
    //recordSubLoans
    var credentialData : [KARecordSubLoans]?
    
    var debitBindingStatus: String = ""
    var productDetailsList: Bool = false
    var maximumLoanLimit: Int = 0
    var bankAbbreviation: Int = 0
    var responseContent: Int = 0
    var originalOverdueFee: TimeInterval = 0
    var cachingRequirementFlag: String = ""
    var overdueSum: TimeInterval = 0
    var transactionProcessingSum: Int = 0
    var validityExpiration: Int = 0
    var renewalDeadline: Int = 0
    var repaymentMethod: Int = 0
    var cardIdentifier: String = ""
    var selectedLoanUsageId: String = ""
    var featureTitle: String = ""
    var selectedVoucherOption: String = ""

}

struct KABillListModel: Convertible {
    //creditLine 授信额度
    var loanInterestPercentage : Int = 0
    //canBorrowAmount 当前可借额度
    var borrowingCapacity : Int = 0
    //unRepaidTotal 未还总额
    var outstandingRepaymentTotal : Double = 0.00
    //unRepayCount 几个未支付账单
    var invitationRollData : Int = 0
    //loanList 账单列表数组
    var accessTemporaryToken: [KALoanListModel]?
    
    var loanOptions: Int = 0
    var unpaidAmount: Int = 0
    var overdueCountTotal: Int = 0
    var currentDateTime: Int = 0
    var bankOptionsList: String = ""
    var certificateUploadDisplay: String = ""
    var compensationRecordList: String = ""

    
}
